############## mysql 服务 #####################
FROM mysql:5.7.26 as mysql
RUN chmod +x /usr/local/bin/docker-entrypoint.sh && \
    mkdir -p /opt/sql
COPY init/init.sql /docker-entrypoint-initdb.d/
#COPY init/test.sql /opt/sql/test.sql
RUN chown -R mysql:mysql /docker-entrypoint-initdb.d/ && \
    chown -R mysql:mysql /opt/sql/